# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=bmon
pkgver=4.0
pkgrel=1
pkgdesc="bandwidth monitor and rate estimator"
url="https://github.com/tgraf/bmon"
arch="all"
license="BSD MIT"
depends=""
depends_dev=""
makedepends="$depends_dev libnl3-dev confuse-dev
	ncurses-dev linux-headers"
install=""
subpackages="$pkgname-doc"
source="https://github.com/tgraf/$pkgname/releases/download/v$pkgver/$pkgname-$pkgver.tar.gz"

builddir="$srcdir"/$pkgname-$pkgver
build() {
	cd "$builddir"
	./configure --prefix=/usr
	make || return 1
}

package() {
	cd "$builddir"
	make DESTDIR="$pkgdir" install
}

sha512sums="5b8cc965b0b05c4bc107d038bba4fcd3317a89bc5e33f77f45a05431c197ad7fa4054d5b0f4ca9b52e8779cb4463d0f429bf22c7a2047abb1ca39174220a46ad  bmon-4.0.tar.gz"
